﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Site1.Master" AutoEventWireup="true" CodeBehind="Detalle.aspx.cs" Inherits="BoxScore.juego.Detalle" %>
<%@ Register src="_infoJuego.ascx" tagname="_infoJuego" tagprefix="uc1" %>
<%@ Register src="_resultados.ascx" tagname="_resultados" tagprefix="uc2" %>
<%@ Register src="../compartidas/_publicidadDisponible.ascx" tagname="_publicidadDisponible" tagprefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="lateral1" runat="server">
    
    <uc3:_publicidadDisponible ID="_publicidadDisponible1" runat="server" />
    
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="lateral2" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="lateral3" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="contenido" runat="server">

   <h2 class="title">Boxscore Final</h2>
    <asp:DetailsView ID="DetailsView1" runat="server" 
        AutoGenerateRows="False" DataSourceID="ObjectDataSource1" 
        BorderStyle="None" EnableTheming="False" GridLines="None">
        <Fields>
            <asp:TemplateField ShowHeader="False">
                <ItemTemplate>
                    <table>
                        <tr>
                            <td colspan="5" class="resaltante">
                                <asp:Label ID="Label8" runat="server" Text='<%# Eval("type", "{0}") %>'></asp:Label> ----
                                <asp:Label ID="Label1" runat="server" Text='<%# Eval("scheduled", "{0:g}") %>'></asp:Label>
                                
                            </td>
                        </tr>
                        <tr class="barra">
                        <td></td>
                            <td>
                                <table>
                                    <tr>
                                        <th class="celda">1</th>
                                        <th class="celda">2</th>
                                        <th class="celda">3</th>
                                        <th class="celda">4</th>
                                        <th class="celda">5</th>
                                        <th class="celda">6</th>
                                        <th class="celda">7</th>
                                    </tr>
                                </table>
                            </td>
                            <th class="celda">C</th>
                            <th class="celda">H</th>
                            <th class="celda">E</th>
                        
                        </tr>

                        <tr>
                            <td>
                                <asp:HiddenField ID="HiddenField1" runat="server" 
                                    Value='<%# Eval("id_team_visitor", "{0}") %>' />
                                <asp:DetailsView ID="DetailsView2" runat="server" Height="50px" Width="125px" 
                                    AutoGenerateRows="False" DataSourceID="ObjectDataSource1" 
                                    BorderStyle="None" EnableTheming="False" GridLines="None">
                                    <Fields>
                                        <asp:TemplateField ShowHeader="False">
                                            <ItemTemplate>
                                                <asp:HyperLink ID="HyperLink1" runat="server" 
                                                    NavigateUrl='<%# "~/Equipo/Detalles.aspx?equipo=" + Eval("id", "{0}") %>' Text='<%# Eval("name", "{0}") %>'></asp:HyperLink>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Fields>
                                </asp:DetailsView>

                                <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                                    SelectMethod="getEquipo" TypeName="BoxScore.Model.BoxScoreBD">
                                    <SelectParameters>
                                        <asp:ControlParameter ControlID="HiddenField1" Name="id" PropertyName="Value" 
                                            Type="Int32" />
                                    </SelectParameters>
                                </asp:ObjectDataSource>
                            </td>
                            
                            <td>

    <asp:Repeater ID="Repeater3" runat="server"  DataSourceID="ObjectDataSource4">
        <HeaderTemplate>
            <table><tr>
        </HeaderTemplate>
        <ItemTemplate>
            
                <td class="celda"><%# DataBinder.Eval(Container.DataItem ,"descripcion") %></td>
            
        </ItemTemplate>
        <FooterTemplate>
           </tr> </table>
        </FooterTemplate>
    </asp:Repeater>
   
    <asp:ObjectDataSource ID="ObjectDataSource4" runat="server" 
        SelectMethod="getScoreByTeamByInning" TypeName="BoxScore.Model.BoxScoreBD">
        <SelectParameters>
            <asp:QueryStringParameter Name="idGame" QueryStringField="id" Type="Int32" />
            <asp:Parameter DefaultValue="1" Name="idTeam" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>


                            
                            </td>

                            <td>
                                <asp:Label ID="Label2" runat="server" Text='<%# Eval("runs_visitor", "{0}") %>'></asp:Label></td>
                            <td>
                                <asp:Label ID="Label3" runat="server" Text='<%# Eval("hit_visitor", "{0}") %>'></asp:Label></td>
                            <td>
                                <asp:Label ID="Label4" runat="server" 
                                    Text='<%# Eval("error_visitor", "{0}") %>'></asp:Label></td>
                        
                        </tr>
                        <tr>
                            <td>
                                <asp:HiddenField ID="HiddenField2" runat="server" 
                                    Value='<%# Eval("id_team_hc", "{0}") %>' />
                                <asp:DetailsView ID="DetailsView3" runat="server" AutoGenerateRows="False" 
                                    DataSourceID="ObjectDataSource2" Height="50px" Width="125px" 
                                    BorderStyle="None" EnableTheming="False" GridLines="None">
                                    <Fields>
                                        <asp:TemplateField ShowHeader="False">
                                            <ItemTemplate>
                                                <asp:HyperLink ID="HyperLink2" runat="server" 
                                                    NavigateUrl='<%# "~/Equipo/Detalles.aspx?equipo=" + Eval("id", "{0}") %>' Text='<%# Eval("name", "{0}") %>'></asp:HyperLink>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Fields>
                                </asp:DetailsView>
                                <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" 
                                    SelectMethod="getEquipo" TypeName="BoxScore.Model.BoxScoreBD">
                                    <SelectParameters>
                                        <asp:ControlParameter ControlID="HiddenField2" Name="id" PropertyName="Value" 
                                            Type="Int32" />
                                    </SelectParameters>
                                </asp:ObjectDataSource>
                                
                                
                             </td>
                             
                             <td>
    <asp:ObjectDataSource ID="ObjectDataSource3" runat="server" 
        SelectMethod="getScoreByTeamByInning" TypeName="BoxScore.Model.BoxScoreBD">
        <SelectParameters>
            <asp:QueryStringParameter Name="idGame" QueryStringField="id" Type="Int32" />
            <asp:Parameter DefaultValue="1" Name="idTeam" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
    
    <asp:Repeater ID="Repeater2" runat="server"  DataSourceID="ObjectDataSource5">
        <HeaderTemplate>
            <table><tr>
        </HeaderTemplate>
        <ItemTemplate>
            
                <td class="celda"><%# DataBinder.Eval(Container.DataItem, "descripcion")%></td>
            
        </ItemTemplate>
        <FooterTemplate>
           </tr> </table>
        </FooterTemplate>
    </asp:Repeater>
   
    <asp:ObjectDataSource ID="ObjectDataSource5" runat="server" 
        SelectMethod="getScoreByTeamByInning" TypeName="BoxScore.Model.BoxScoreBD">
        <SelectParameters>
            <asp:QueryStringParameter Name="idGame" QueryStringField="id" Type="Int32" />
            <asp:Parameter DefaultValue="0" Name="idTeam" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
                             
                             </td>
   
                                
                            <td>
                                <asp:Label ID="Label5" runat="server" Text='<%# Eval("runs_hc", "{0}") %>'></asp:Label></td>
                            <td>
                                <asp:Label ID="Label6" runat="server" Text='<%# Eval("hit_hc", "{0}") %>'></asp:Label></td>
                            <td>
                                <asp:Label ID="Label7" runat="server" Text='<%# Eval("error_hc", "{0}") %>'></asp:Label></td>
                            <td></td>
                        
                        </tr>
                        <tr>
                            <td colspan="5">
                                <b>Finalizo por:</b>&nbsp;
                                <asp:Label ID="Label9" runat="server" Text='<%# Eval("end_type", "{0}") %>'></asp:Label></td>
                        </tr>
                        
                    
                    </table>
                   
                </ItemTemplate>
            </asp:TemplateField>
        </Fields>
    </asp:DetailsView>    
    <br />
    
    
    
    <h2 class="title">Detalles del Juego</h2>
   
    

    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
        SelectMethod="getGameResult" TypeName="BoxScore.Model.BoxScoreBD">
        <SelectParameters>
            <asp:QueryStringParameter Name="id" QueryStringField="id" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>



</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="resultados" runat="server">
</asp:Content>
<asp:Content ID="Content7" ContentPlaceHolderID="proximos" runat="server">
</asp:Content>
<asp:Content ID="Content8" ContentPlaceHolderID="publicidadAjena" runat="server">
</asp:Content>
<asp:Content ID="Content9" ContentPlaceHolderID="publicidad" runat="server">
</asp:Content>
